package com.alan.factory.factory_method;

/**
 * Created by Alan on 2018/8/22.
 */
public class Test {

    public static void main(String[] args){
        ConnectionFactory connectionFactory = new JIOConnectionFactory();
        connectionFactory.createConnection("jio");

        connectionFactory.createConnection("xsx");
    }
}
